	<!--  Ajax Scripts -->
	<%@page import="net.groupme.gui.rendering.constants.RENDERING_CONSTANTS"%>
	<script type='text/javascript' src='<%= request.getContextPath()%>/dwr/interface/DWRSearchManager.js'></script>
	<script type='text/javascript' src='<%= request.getContextPath()%>/dwr/util.js'> </script>
	<script type="text/javascript" language="javascript"><!--
		/**
		 * Reload tag cloud of group.
		 */
		 
		 function reloadTagCloud(){
		 	DWRSearchManager.getSidebarTagCloud(showTagCloud);
			$('tagCloud_content').innerHTML += "<img src=\"<%= request.getContextPath() + RENDERING_CONSTANTS.RELATIVE_PATH_OF_AJAX_LOADING_IMAGE %>\"/> " +
						"<small><i>refreshing tag cloud</i></small>";
			}
			
		/**
		 * Visualize tag cloud of group.
		 */
		 function showTagCloud(tagCloud){
		 	if(tagCloud == null || tagCloud.html == ""){
		 		$('tagCloud_content').innerHTML = "<i>Neither the group nor its resources are tagged!</i>";
		 	}else{
		 		$('tagCloud_content').innerHTML = tagCloud.html;
				}
			}
		reloadTagCloud();
		//-->
	</script>